package com.doudou.pay.helper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.doudou.pay.helper.entities.PayOrder;

public interface PayOrderMapper {
	public int insert(PayOrder payorder);

	public int update(PayOrder payorder);

	public PayOrder selectById(@Param("payId") String payId);

	public List<PayOrder> select(PayOrder payorder);

	public int selectCount(PayOrder payorder);

	public int updatePayInfo(@Param("status") String status,
			@Param("payId") String payId,
			@Param("platformOrder") String platformOrder,
			@Param("platformOrderStatus") String platformOrderStatus);

	public PayOrder selectOrderByUserIdAndMark(@Param("userId") String userId,
			@Param("remark") String remark);

	public PayOrder selectOrderByUserIdAndThirdPartyOrderId(
			@Param("userId") String userId,
			@Param("thirdPartyOrderId") String thirdPartyOrderId);

	public List<PayOrder> selectForPage(@Param("userId") String userId,
			@Param("firstPos") long firstPos, @Param("pageSize") long pageSize);

}
